<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>JpetStore</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css"/>
    <link rel="stylesheet" href="../css/jquery-ui.css" type="text/css"/>
    <script th:src = "@{/JS/jquery-3.2.1.js}"></script>
    <script th:src = "@{/JS/jquery-ui.js}"></script>
</head>
<body>
    <div th:replace="/common/header.html"></div>
    <div id="Content">
        <div id="Catalog">
            <a href="/catalog/main">Return to Menu</a>

            <p>Please enter your username and password.</p>
            <p>Are you a administrator?<a href="/catalog/AdminSignonForm">Click Here!</a></p>
            <br/>
            <form method="post" action="/account/signOn" id="signOnForm">
                <label class = "signOnTitle" for="username">Username: </label><input type="text" name="username" id="username" class="signOnText" required="required">
                <br/>
                <br/>
                <label class = "signOnTitle" for="password">Password: </label><input type="password" name="password" id="password"class="signOnText" required="required">
                <br/>
                <br/>
                <label class = "signOnTitle" for="textCode">textCode: </label><input type="text" name="textCode" id="textCode"class="signOnText" required="required">
                <br/>
                <br/>

                <script type="text/javascript">
                    function reImg(){
                        var img = document.getElementById("Img");
                        img.src = "paint?rnd=" + Math.random();
                    }
                </script>

                <a href="#" onclick="reImg()">
                <span  class="cell-5" style="text-align: center;">
                            <img id="Img" src="/account/paint">
				</span>
                </a>
                </br>
                </br>
                <input type="submit" value="提交" id="signOnSubmit"/>
            </form>
            <a href="/account/signByEmail">切换到邮箱登录</a>
            <br/>
            Need a user name and password? <a href="newAccountForm">Register Now!</a>


        </div>
    </div>
    <div th:replace="/common/footer.html"></div>
</body>
</html>